/**
 * Copyright (c) 2012, SHX Studio.
 * All rights reserved.
 * rosary226@gmail.com
 * 
 * @author shenqianfeng
 * @date 2012-9-3 下午05:58:01   
 * @version 1.0   
 */
package com.xxx.sqfengine.transform;

import com.xxx.sqfengine.util.SQFGLCompareUtil;

/**
 * @author shenqianfeng
 */
public class SQFGLRotateInfo {
	
	private float mDegree = 0.0f;
	private float mAroundX = 0.0f;
	private float mAroundY = 0.0f;
	private float mAroundZ = 0.0f;
	
	/**
	 * @author shenqianfeng 
	 */
	public SQFGLRotateInfo(float rotateDegree, boolean isAroundX, boolean isAroundY, boolean isAroundZ) {
		this.mDegree = rotateDegree;
		if(isAroundX) this.mAroundX = 1.0f;
		if(isAroundY) this.mAroundY = 1.0f;
		if(isAroundZ) this.mAroundZ = 1.0f;
	}

	// getter and setter below
	public float getDegree() {
		return mDegree;
	}

	public void setDegree(float degree) {
		this.mDegree = degree;
	}

/*	public boolean isAroundX() {
		if(SQFGLCompareUtil.isEqual(Math.abs(mAroundX), 1.0f)) {
			return true;
		}
		return false;
	}*/

	public float getAroundX() {
		return mAroundX;
	}

	public void setAroundX(float aroundX) {
		this.mAroundX = aroundX;
	}

	public float getAroundY() {
		return mAroundY;
	}

	public void setAroundY(float aroundY) {
		this.mAroundY = aroundY;
	}

	public float getAroundZ() {
		return mAroundZ;
	}

	public void setmAroundZ(float aroundZ) {
		this.mAroundZ = aroundZ;
	}

}
